package cn.zhl.boot.controller;

import cn.zhl.boot.dto.User;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2020-03-20 13:57
 **/
@RestController
@RequestMapping("/model")
public class ModelController {
	@RequestMapping("/test")
	public Object test(@ModelAttribute User user) {
		return user;
	}
}
